package com.tcm.pay.enums;

import com.base.core.result.ResponseCodeEnum;

/**
 * 错误码枚举类
 *
 * 交易系统，使用 1-001-001-000 段
 */
public enum BusinessCodeEnum implements ResponseCodeEnum {


    //===============订单模块=====================
    ID_NOT_EXISTS(1003001001, "订单主键id不存在"),
    ORDER_PARAM_DATA_NOT_EXISTS(1003001002, "订单数据不存在"),
    BUYER_ID_NOT_EXISTS(1003001004, "订单买家id不存在"),
    ORDER_PAY_NOT_EXISTS(1003001002, "没有可支付的订单"),
    ORDER_STATUS_CHANGE_FAIL(1003001014, "订单状态更改失败."),
    ORDER_DOCTOR_ID_NOT_FOUND(1003001006, "医生账号id未找到."),
    ORDER_UNPAY(1003001007, "订单未支付."),
    ORDER_NOT_EXISTS(1003001008, "订单不存在"),
    ORDER_PAID(1003001009, "订单已支付"),
    ALIPAY_METHOD_WRONG(1003001010, "支付方式不正确,请使用支付宝支付"),
    WXPAY_METHOD_WRONG(1003001011, "支付方式不正确,请使用微信支付"),
    BILL_NO_NOT_EXISTS(1001001000, "订单号不能为空"),
    AMOUNT_NOT_EXISTS(1001001001, "支付金额不能为空"),
    HTTP_EXCEPTION(1001001002,"请求出现异常"),
    MERCANT_ORDER_NO_NOT_EXISTS(1001001003,"订单不能为空"),

    //===============提现模块=====================
    BANK_CODE_NOT_FOUND(1001002001, "银行名称不能为空"),
    PROVICE_NOT_FOUND(1001002002, "开户省份不能为空"),
    CITY_NOT_FOUND(1001002003, "开户市不能为空"),
    ACCOUNT_NAME_NOT_FOUND(1001002004, "开户名称不能为空"),
    CARD_NO_NOT_FOUND(1001002005, "开户卡号不能为空"),
    AMOUNT_NOT_FOUND(1001002006, "提现金额不能为空"),

    //===============登录模块=====================
    IDENTIFIER_PARAMS_NOT_FOUND(1001005001, "缺少账号参数"),
    WECHAT_CODE_NOT_FOUND(1001005015, "微信授权code码未找到"),
    ;


    private final int code;
    private final String message;

    BusinessCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
